<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <%@ include file="/commons/basejs.jsp" %>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>标签管理</title>
    <script type="text/javascript">

    </script>
</head>
<body>
<script type="text/javascript">
    $(function() {

        $("#specialSellerAddLoc").val(selectLocId);
        $("#specialSellerAddCityId").val(selectCityId);
        console.log( "addlocid:"+$("#specialSellerAddLoc").val());
        console.log("addcityid:"+$("#specialSellerAddCityId").val());



        $('#autocomplete-ajax-seller-add').autocomplete({
            serviceUrl: '${path}/card/autoCompleteData.do',
            onSelect: function(suggestion) {
                $('#autocomplete-seller-add').val(suggestion.data);
            },
            onHint: function (hint) {
                $('#autocomplete-ajax-x-seller-add').val(hint);
            }
        });

        $('#specialSellerForm').form({
            url : '${path }/special/specialSellerAdd.do',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    $('#specialSellerAddFormPage').dialog('close');
                    reloadSpecialDataGrid();
                } else {
                    var form = $('#specialSellerForm');
                   $.messager.alert('错误', eval(result.msg), 'error');
                }
            }
        });
    });
</script>
<div class="easyui-layout" data-options="fit:true,border:false" >
    <div data-options="region:'center',border:false" style="overflow: hidden;padding: 3px;" >
        <form id="specialSellerForm" method="post">
            <table class="grid">

                <tr>
                    <td>商家名称</td>
                    <td>
                        <div style="position: relative;display: inline;" >
                            <input id="specialSellerAddLoc" name="specialLocIdStr" type="hidden" >
                            <input id="specialSellerAddCityId" name="cityId" type="hidden" >
                            
                            <input type="hidden" name="sellerId" id="autocomplete-seller-add" value="" data-options="required:true" />
                            <input type="text" id="autocomplete-ajax-seller-add" style="position: absolute; z-index: 2; background: transparent;" value=""/>
                            <input type="text" id="autocomplete-ajax-x-seller-add" disabled="disabled" style="color: #CCC; position: absolute; background: transparent; z-index: 1;" value=""/>
                        </div>
                        <br>
                    </td>
                </tr>
                <tr>
                    <td>排序</td>
                    <td><input name="ord" value="0"  class="easyui-numberspinner" style="width: 140px; height: 29px;" required="required" data-options="editable:true"></td>
                </tr>




            </table>
        </form>
    </div>
</div>
</body>
</html>